<template>
  <view class="set-container mainpadding">
    
    <view class="set-list">
      <view class="set-item"  @click="toMyadress()">
        <text>我的地址</text>
        <view class="right_icon"></view>
      </view>
      <view class="set-item" @click="toAboutUs()">
        <text>关于我们</text>
        <view class="right_icon"></view>
      </view>
      <view class="set-item" @click="fkFn()">
        <text>意见反馈</text>
        <view class="right_icon"></view>
      </view>
      <view class="set-item" @click="gozfb()">
        <text>支付宝信息</text>
        <view class="right_icon"></view>
      </view>
    </view>
    
    <view class="logoutBtn" @click="loginout">退出登录</view>
    
  </view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
  export default {
    data() {
      return {
        
      }
    },
    methods: {
		gozfb(){
			uni.navigateTo({
				url: "/pages/my/zfb"
			})
		},
      // 意见反馈：
      fkFn() {
        uni.navigateTo({
          url: '/pages/my/yijianfk'
        })
      },
      toAboutUs() {
        uni.navigateTo({
          url: '/pages/my/aboutUs'
        })
      },
	  toMyadress(){
		  uni.navigateTo({
		  	url:'/pages/shopping/shouhuodizhi'
		  }) 
	  },
	  loginout(){
		  httpRequest.modal('退出提示', '确认退出?', true, function(ret) {
		  	if (ret) {
		  		uni.removeStorageSync('token');
		  		uni.removeStorageSync('user_id');
		  		uni.navigateBack(1)
		  		
		  	}
		  })
	  }
    }
  }
</script>

<style lang="scss" scoped>
  .set-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30rpx;
    border-bottom: 2rpx solid #fcfcfc;
  }
  
  .set-item:last-child {
    border-bottom: none;
  }
  
  .logoutBtn {
    padding: 18rpx 272rpx;
    background-color: #00D4E2;
    border-radius: 41rpx;
    font-size: 32rpx;
    font-family: PingFang SC-Medium, PingFang SC;
    font-weight: 500;
    color: #FFFFFF;
    margin-top: 353rpx;
  }
</style>